package com.jlf.tool.sensitive.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jlf.tool.sensitive.JsonSensitiveSerializer;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 敏感注解
 *
 * @author 吴建荣 2019-01-21
 */
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize(using = JsonSensitiveSerializer.class)
public @interface Sensitive {
    SensitiveType value();
}
